<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item v-for="(item, index) in crumbs" :key="index">{{
        item
      }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
import { watch, watchEffect, ref } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const crumbs = ref<string[]>([]);

watchEffect(() => {
  // console.log(route.path)
  // crumbs.value = route.meta.crumbs as string[]
  // 
  crumbs.value = route.meta.crumbs!;
});
</script>

<style lang="scss" scoped>

</style>
